package ip

import (
	"go-fiber-ip2region/api"

	"github.com/gofiber/fiber/v2"
)

type IpInfoRouter struct{}

func (i *IpInfoRouter) InitIpInfoRouter(Router fiber.Router) {
	ipInfoRouter := Router.Group("ip")
	ipInfoApi := api.ApiGroupApp.IpInfoApiGroup.IpInfoApi
	{
		ipInfoRouter.Get(":ip", ipInfoApi.GetIpInfo) // 获取ip详情
	}
}
